package com.lhd.codeparkcodesandbox.secutity;

import cn.hutool.core.io.FileUtil;

import java.nio.charset.Charset;

public class TestSecurityManager {

    public static void main(String[] args) {
//        System.setSecurityManager(new DefaultSecurityManager());
//        System.setSecurityManager(new DenySecurityManager());
        System.setSecurityManager(new MySecurityManager());
        FileUtil.writeString("aa","E:\\星球项目\\codepark-codesandbox\\codepark-code-sandbox\\src\\main\\resources\\aa.txt", Charset.defaultCharset());
    }
}
